﻿using FPSO.Models.Constant;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using static FPSO.Models.Constant.TankConstant;

namespace FPSO.HMI.Views.Dialog
{
    /// <summary>
    /// WBTTaskDialog.xaml 的交互逻辑
    /// </summary>
	/// NOTICE 现在暂时只进行压载舱倒舱操作
    public partial class TankLoadTypeSelectDialog : Window
    {
		public int LoadTypeSelect = 0;
		public TankLoadTypeSelectDialog()
        {
            InitializeComponent();
		}

		private void Load_Click(object sender, RoutedEventArgs e)
		{
			LoadTypeSelect = 1;
			this.DialogResult = true;
			this.Close();
		}

		private void Swap_Click(object sender, RoutedEventArgs e)
		{
			LoadTypeSelect = 2;
			this.DialogResult = true;
			this.Close();
		}

        private void Cancel_Click(object sender, RoutedEventArgs e)
        {
			this.DialogResult = false;
			this.Close();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
		}

		private void WindowMove(object sender, MouseEventArgs e)
		{
			if (e.LeftButton == MouseButtonState.Pressed)
			{
				DragMove();
			}
		}
	}
}
